-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(platform): Add SVGs to projectTabs #673
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@mrswastik-robot can you figure out a way in which the line highlighting the current tab, matches the width of the icon + the text, let me know if my explanation was not clear 😅 |
So it needs to be dynamic then ig? Changing according to the respective text + icon. Seems tough but I can try |
Tried to made changes as requested by @rajdip-b , it was after the commit I saw that it was already resolved, should I revert back or it is fine as it is rn? |
All good mate! |
## [2.11.0-stage.2](v2.11.0-stage.1...v2.11.0-stage.2) (2025-01-30) ### 🚀 Features * **platform:** Add SVGs to projectTabs ([#673](#673)) ([37bfddf](37bfddf))
🎉 This PR is included in version 2.11.0-stage.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Description
This code tries to add SVGs in the tab line for the projectTabs elements -
Secret, Variable, Enivornment
by modifying theline-tab.tsx
fileFixes #658
Screenshots of relevant screens
This is how it looks like right now, do let me know if further modifications are required ...
Developer's checklist
If changes are made in the code:
Documentation Update
PR Type
Enhancement
Description
Added SVG icons to
Secrets
,Variables
, andEnvironment
tabs.Updated
line-tab.tsx
to support tab icons dynamically.Introduced
getIcon
function to map tabs to respective SVGs.Enhanced tab UI with icon and text alignment improvements.
Changes walkthrough 📝
line-tab.tsx
Add SVG icons and dynamic icon mapping to tabs
apps/platform/src/components/ui/line-tab.tsx
EnvironmentSVG
,SecretSVG
, andVariableSVG
components.icon
prop toTab
component for dynamic SVG rendering.getIcon
function to map tab names to SVG icons.